<%-- 
    Document   : index
    Created on : 01/09/2013, 01:38:52 AM
    Author     : Leydy^
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="Stylesheet" href="Leydy/Recursos/css/style.css">
        
        <title>JSP Page</title>
        <script src="jquery-1.9.1.js"></script>
      
<script type="text/javascript">
          
     function AjaxLëÿdÿMäÿümÿ(){
        $.ajax({type:"POST",
                url:"result.jsp",
                data:"",
                success:function(msg){
                    $('#main').html(msg); 
                    $('#main').show("normal"); 
                }});}
            
            
</script>
        
    </head>
    
    <body style="background-image: url('Leydy/Recursos/img/g.jpeg')">
        
        
        <span class="sxgr blk" style="padding: 10px;">Ejemplo Ajax</span>
        <p class="pq"><marquee>HOLA MUNDO</marquee></p>
<center><input type="button" value="Presiona" onclick="AjaxLëÿdÿMäÿümÿ();" /></center> 
        
 <div id="main">
          <hr>  
        </div>
    </body> 
</html>
